<?php

namespace App\Server;
use Illuminate\Support\Facades\DB;


/**
 * Created by PhpStorm.
 * User: hanbin
 * Date: 17/3/29
 * Time: 上午11:24
 */
class MemberModel extends BaseModel
{
    protected $table = 'member';

    /**
     * 注册来源
     * @var int
     */
    public static $ANDROID = 2;
    public static $IOS = 3;
    public static $WEB = 1;

    public static function updateInfo($so = [], $data = [])
    {
        if ($so && $data) {
            return DB::table('member')->where($so)->update($data);
        } else {
            return false;
        }
    }

}